package com.qdu.service.impl;

import com.qdu.entity.Examineinfo;
import com.qdu.mapper.ExamineinfoMapper;
import com.qdu.service.ExamineService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ExamineServiceImpl implements ExamineService {

    @Autowired
    ExamineinfoMapper mapper;

    @Override
    public List<Examineinfo> getAll() {
        return mapper.getAll();
    }

    @Override
    public int update(Examineinfo record) {
        return mapper.update(record);
    }

    @Override
    public int insert(Examineinfo record) {
        return mapper.insert(record);
    }

    @Override
    public int insertSelective(Examineinfo record) {
        return mapper.insertSelective(record);
    }

    @Override
    public List<Examineinfo> getExamineByPage(Integer start, Integer rows) {
        return mapper.getExamineByPage(start, rows);
    }

    @Override
    public Long findTotals() {
        return mapper.findTotals();
    }

    @Override
    public Examineinfo selectByHid(String hid) {

        return mapper.selectByHid(hid);
    }

    @Override
    public Examineinfo selectByUidAndHid(String uid, String hid) {
        return mapper.selectByUidAndHid(uid, hid);
    }
}
